// 初始化按钮状态

export default function updateButtonStatus(props) {
    const {showDetail,hrorgval,pk_psndoc_sub} = props;
    props.button.setButtonVisible({
        query: !showDetail,
        transaction: !showDetail,
        contract: showDetail,
        file: showDetail,
        export: !showDetail
    });

    props.button.setButtonDisabled({
        query: !hrorgval,
        transaction: !hrorgval,
        contract: !hrorgval,
        file: !pk_psndoc_sub,
        export: !hrorgval,
        print: !hrorgval,
    });
}
